{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "name: bee03_filter\n",
      "0.9597701148465534\n"
     ]
    }
   ],
   "source": [
    "\n",
    "\n",
    "'''\n",
    "description: \n",
    "first benchmark IoU: 0.5, 0.75 for AP \n",
    "second benchmark IoU: 0.5:0.95, step = 0.05\n",
    "return {*}\n",
    "#*  \n",
    "'''\n",
    "\n",
    "\n",
    "import os \n",
    "from os.path import join, isdir, isfile, exists\n",
    "from os import makedirs\n",
    "import sys\n",
    "os.chdir(\"/data/xusc/exp/topictrack-bee\")\n",
    "\n",
    "import cv2\n",
    "from glob import glob\n",
    "import json\n",
    "from os.path import  join, split, exists\n",
    "import numpy as np\n",
    "import glob\n",
    "from tools.det_acc import  *\n",
    "from det_acc_calculator import  * \n",
    "        \n",
    "        \n",
    "det_acc_calculator = DetAccCalculator('beedance-val')\n",
    "for idx in range(det_acc_calculator.__len__()):\n",
    "    print(det_acc_calculator.get_ap(idx))\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "name: ant09\n",
      "0.9564071609522112\n"
     ]
    }
   ],
   "source": [
    "\n",
    "det_acc_calculator = AntDetAccCalculator('antmove-val')\n",
    "for idx in range(det_acc_calculator.__len__()):\n",
    "    print(det_acc_calculator.get_ap(idx))"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "yang_real",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
